package com.xcity.pomelo.response;

import com.xcity.db.entity.Employee;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class EmployeeFeedResponse extends Response {

	private long id;
	private int energy;
	
	public EmployeeFeedResponse(int serial, Employee e) {
		super(serial);
		this.id = e.getId();
		this.energy = e.getEnergy();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getEnergy() {
		return energy;
	}

	public void setEnergy(int energy) {
		this.energy = energy;
	}

}
